DOCS=./docs
INC1=./include
INC2=/home/kikuchi/documents/informatique/upmc/ca/projets-ca/projet1/ilp1_workspace/ILP/C
SRC=./src
OBJ=./obj
BIN=./bin

CFLAGS=-Wall
CC=gcc

COMPILE= $(CC) $(CFLAGS) -o $@ $^ -I$(INC1) -I$(INC2)
MAKEOBJ= $(CC) $(CFLAGS) -o $@ -c $< -I$(INC1) -I$(INC2)

all: $(BIN)/main

$(BIN)/main: $(SRC)/main.c $(OBJ)/gc_ilp_object.o
	$(COMPILE)

$(OBJ)/%.o: $(SRC)/%.c $(INC1)/%.h
	$(MAKEOBJ)

.PHONY: all clean